<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>newProject.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="/estate/css/css.css"></link>
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
 <script type="text/javascript" src="/estate/ckeditor/ckeditor.js"></script>
   		<script type="text/javascript" src="/estate/js/jquery-1.2.2.pack.js">
</script>
		<script type="text/javascript" src="/estate/js/json.js">
</script>
		<script type="text/javascript" src="/estate/js/jquery-1.3.min.js">
</script>
   <script type="text/javascript" src="/estate/js/calender.js "  ></script>
   <script type="text/javascript" src="/estate/js/lhgcore.js"></script>
	<script type="text/javascript" src="/estate/js/lhgcalendar.js"></script>
	<script type="text/javascript">
		J.califrm = true;
		function catagoryChange() {
$.get(
		      'billingAction.action?method=json&proCatagory='+document.getElementById("proCatagory").value,
		     null,
		      function(data) //回传函数
		      {
		      	 var list=eval('('+data+')');
		       var select=document.getElementById("proId");
		       select.options.length=0;
		       
		       　for(var i=0;i<list.length;i++){
		       var option=document.createElement("option");
				option.text=list[i].name;
		       option.value=list[i].id;
         		select.add(option);
 　　}
		      });
	}
	</script>
  </head>
  
  <body>
  <table border="0" cellpadding="0" cellspacing="0" style="background-image:url(/estate/images/gtbg.gif) " width="100%">
    <tr>
      <td width="50%" height="82" rowspan="2"><img src="/estate/images/guide_01.gif"></td>
      <td width="50%" style="background-image:url(/estate/images/guide_02.gif);color:#cc1212; font-size:16px; font-weight:bold; text-align:right; padding-right:50px; letter-spacing:1px; " height="39"><strong>新建案卷</strong></td>
    </tr>
     <tr><td width="50%" style="background-image:url(/estate/images/guide_03.gif); height:43px;" align="center" valign="middle">
	  <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
        </tr>
      </table></td>
    </tr>
</table><br>
    <form action="documentAction.action?method=insert" method="post" >
    	 <table width="60%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">
    	<tr>
    	<td colspan="4" class="tableTitle">  新建案卷  </td>
    	</tr>
  <tr>
    <td align="right" class="two" width="20%"><label style="color:red;">*(必填)</label>案卷号：</td>
    <td align="left" class="two" width="40%"><input class="input" type="text" name="documentNum" id="libraryNum" /></td>
    </tr>
   <tr>
    <td align="right" class="two" width="118"><label style="color:red;">*(必填)</label>案卷名称：</td>
    <td align="left" class="two" width="179"><input class="input" type="text" name="documentName" id="libraryName" /></td>
  </tr>
   <tr>
    <td align="right" class="two">项目所属类别</td>
    <td align="left" class="two"><select class="select" id="proCatagory" name="proCatagory" onchange="catagoryChange()">
    <option></option>
			<optgroup label="请选择项目种类">
				<option value="1">
					造价咨询
				</option>
				<option value="2">
					招标代理
				</option>
				<option value="3">
					全过程管理
				</option>
			</optgroup>
		</select></td>
		</tr>
   <tr>
    <td align="right" class="two">项目名称</td>
    <td align="left" class="two"><select class="select" id="proId" name="proId" style="width: 100px"></select></td>
  </tr>
  <tr>
    <td align="right" class="two"><label style="color:red;">*(必填)</label>所属卷库：</td>
    <td align="left" class="two"><select class="select" name="libraryId" id="libraryId">
    <c:forEach var="librarySelect" items="${librarySelect}">
    <option value="${librarySelect.key}">${librarySelect.value}</option>
  </c:forEach>
    </select></td>
    </tr>
   <tr>
     <td align="right" class="two" width="118"><label style="color:red;">*(必填)</label>全宗号：</td>
    <td align="left" class="two" width="179"><input class="input" type="text" name="fondNum" id="fondNum" /></td>
</tr>
  <tr>
    <td align="right" class="two">凭证类别：</td>
    <td align="left" class="two"><select class="select" name="catagory" id="catagory">
    <c:forEach var="catagorySelect" items="${catagorySelect}">
    <option value="${catagorySelect.key}">${catagorySelect.value}</option>
  </c:forEach>
    </select></td>
    </tr>
   <tr>
     <td align="right" class="two">案卷密级：</td>
    <td align="left" class="two"><select class="select" name="secretRate" id="secretRate">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="2">4</option>
    <option value="3">5</option>
    </select></td>
</tr>
  <tr>
  	<td align="center" class="two" colspan="2">
  	<input onFocus="this.blur();" style="cursor:pointer" class="button4" type="submit" name="submitButton" id="submitButton" value="添加保存" />
  	<input onFocus="this.blur();" style="cursor:pointer" class="button2" type="reset" name="resetButton" id="resetButton" value="重置" /></td>
  </tr>
</table>
    </form>
  </body>
</html>


